package frankenstein.algo;
import java.util.LinkedList;
import java.util.ArrayList;

public class SOAPattern extends Pattern {

	public SOAPattern(LinkedList<Integer> classesUsed, LinkedList<Integer> classesUsing, LinkedList<Integer> respsUsed
			,LinkedList<Integer>respsUsing, ArrayList<Integer> interfaces, ArrayList<Integer> classes) {
		this.patternType = SOA;
		this.usedClasses.addAll(classesUsed);
		this.usingClasses.addAll(classesUsing);
		this.usedResponsibilities.addAll(respsUsed);
		this.usingResponsibilities.addAll(respsUsing);
		this.interfacesInvolved.addAll(interfaces);
		this.classesInvolved.addAll(classes);
		if(interfacesInvolved.size()>0){
		this.patternInterface = this.interfacesInvolved.get(0);
		}
		else this.patternInterface = 0;
		this.patternName = "SOA";
		this.patternClass = this.classesInvolved.get(0);
	}

}
